package com.huang.decorator;

/**
 * 继承快餐类，并把自己抽象，还要再聚合快餐类（抽象装饰者角色）
 */
public abstract class Garnish extends FastFood {
    //声明聚合类，快餐的变量
    private FastFood fastFood;

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }

    public Garnish(FastFood fastFood, float price, String desc) {
        super(price, desc);
        this.fastFood = fastFood;
    }
}
